//
//  GirlFriend.swift
//  gf
//
//  Created by henaihan on 2017/9/18.
//  Copyright © 2017年 hnh. All rights reserved.
//

import Foundation
class GirlFriend:NSObject{
    var name:String = ""
    var age: Int = 0
    override init(){
        name = String(format:"%c%c%c", 65 + arc4random())
        age = Int( arc4random() % 10 + 18)
    }
    override var description: String{
        return "姓名:\(name)，年龄:\(age)"
    }
    func onDate(){
        print("与\(name)约会,她今年\(age)岁")
    }
}
